package org.bronycorps.mlptss.utils;

import java.util.HashMap;
import java.util.Map;

public class AnimationCache {

	private static AnimationCache instance = null;

	public static AnimationCache getInstance() {
		if (instance == null) {
			instance = new AnimationCache();
		}
		return instance;
	}

	private Map<String, DrawableAnimation> cache = new HashMap<String, DrawableAnimation>();

	private AnimationCache() {
	}

	public void clear() {
		this.cache.clear();
	}

	public boolean containsKey(Object key) {
		return this.cache.containsKey(key);
	}

	public boolean containsValue(Object value) {
		return this.cache.containsValue(value);
	}

	public DrawableAnimation get(String key) {
		return this.cache.get(key);
	}

	public boolean isEmpty() {
		return this.cache.isEmpty();
	}

	public DrawableAnimation put(String key, DrawableAnimation value) {
		return this.cache.put(key, value);
	}

	public void putAll(Map<? extends String, ? extends DrawableAnimation> m) {
		this.cache.putAll(m);
	}

	public DrawableAnimation remove(Object key) {
		return this.cache.remove(key);
	}

	public int size() {
		return this.cache.size();
	}

}
